#root {
  max-width: 100%;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  text-align: left;
}

.logo-box {
  position: relative;
  height: 9em;
}

.logo {
  position: absolute;
  left: calc(50% - 4.5em);
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .logo.electron {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 左右布局样式 */
.App {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.App-wrapper {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 240px;
  height: 100%;
  background-color: #ffffff;
  border-right: 1px solid #e8e8e8;
  overflow-y: auto;
}

.sidebar-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-header-logo {
  width: 28px;
  height: 28px;
  margin-right: 10px;
}

.sidebar-header-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.menu-list {
  padding: 10px 0;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color 0.2s;
  color: #333;
}

.menu-item:hover {
  background-color: #f5f5f5;
}

.menu-item.active {
  background-color: #f0f7ff;
  color: #4263eb;
}

.menu-item-icon {
  margin-right: 12px;
  font-size: 18px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-item-text {
  font-size: 14px;
}

.menu-category {
  font-size: 13px;
  color: #999;
  padding: 12px 20px 8px;
  margin-top: 4px;
}

.content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #fff;
}

.content-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.content-title {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.content-subtitle {
  font-size: 14px;
  color: #666;
}

.menu-item.subscription-item {
  background-color: #1e1e2e;
  color: white;
  margin: 10px 0;
}

.menu-item.subscription-item .menu-item-icon,
.menu-item.subscription-item .menu-item-text {
  color: white;
}

.menu-item.subscription-item:hover {
  background-color: #2a2a3a;
}
